// pages/newusercenter/newusercenter.js
import { getUserInfo} from '../../utils/networkRequest.js'
Page({

  /**
   * 页面的初始数据
   */
  data: {
  userInfo:null,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let self =this;
    getUserInfo((r)=>{
      console.log(r)
     if(r.code == 0){
       self.setData({
         userInfo:r.data
       })
     }else{
       wx.showToast({
         icon:'none',
         title: r.message,
       })
     }
    })
  },
  goweizhang:function(){
   wx.navigateTo({
     url:"../weizhangbox/weizhanglist/weizhanglist"
   })
  },
  goxiaofei:function(){
    wx.navigateTo({
      url: "../xiaofeibox/xiaofeilist/xiaofeilist"
    })
  },
  goNuoCheSetting:function(){
    wx.navigateTo({
      url: "../nuocheSetting/nuocheSetting"
    })
  },
  goCouponlist:function(){
    wx.navigateTo({
      url: "../couponlist/couponlist"
    })
  },
  goPackagrList:function(){
    wx.navigateTo({
      url: "../packagebox/packagelist/packagelist"
    })
  },
  goCheckList:function(){
    wx.navigateTo({
      url: "../checkbox/checklist/checklist"
    })
  },
  //关于我们
  goGuanYuWoMen:function(){
    wx.navigateTo({
      url: "../guanyuwomen/guanyuwomen"
    })
  }
})